package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退款记录对象 refund
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Refund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 退款编号 */
    @Excel(name = "退款编号")
    private String refundNo;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 就诊卡号 */
    private Long id;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String bizType;

    /** 退款方式 */
    @Excel(name = "退款方式")
    private String refundType;

    /** 退款金额（元） */
    @Excel(name = "退款金额",
            scale = 2,
            cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal amount;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String refundStatus;

    /** 卡内余额（元） */
    @Excel(name = "卡内余额")
    private BigDecimal balance;

    @Excel(name = "是否完成支付")
    private int ifok;

    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }

    public void setRefundNo(String refundNo) 
    {
        this.refundNo = refundNo;
    }

    public String getRefundNo() 
    {
        return refundNo;
    }

    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setBizType(String bizType) 
    {
        this.bizType = bizType;
    }

    public String getBizType() 
    {
        return bizType;
    }

    public void setRefundType(String refundType) 
    {
        this.refundType = refundType;
    }

    public String getRefundType() 
    {
        return refundType;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setRefundStatus(String refundStatus) 
    {
        this.refundStatus = refundStatus;
    }

    public String getRefundStatus() 
    {
        return refundStatus;
    }

    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operateTime", getOperateTime())
            .append("refundNo", getRefundNo())
            .append("patientName", getPatientName())
            .append("id", getId())
            .append("source", getSource())
            .append("bizType", getBizType())
            .append("refundType", getRefundType())
            .append("amount", getAmount())
            .append("refundStatus", getRefundStatus())
            .append("balance", getBalance())
                .append("ifok", getIfok())
            .toString();
    }

    public int getIfok() {
        return ifok;
    }

    public void setIfok(int ifok) {
        this.ifok = ifok;
    }
}
